package com.bfd.es_demo.service.impl;

import com.bfd.es_demo.dao.MovieMapper;
import com.bfd.es_demo.pojo.Movie;
import com.bfd.es_demo.service.MoviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:yong.li
 * @date:2019/10/21 13:53
 */
@Service
public class MoviceServiceImpl implements MoviceService {
    @Autowired
    private MovieMapper movieMapper;
    @Override
    public List<Movie> getAll() {
        return movieMapper.findAll();
    }
}
